package com.opengl.textprint.utils;

import android.content.Context;
import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.View;

import androidx.annotation.NonNull;

/**
 * Author: Wu Chang
 * 阅读Item的查看大图点击事件
 * Date: 2023/4/28 17:19
 */
public class ReadClickableSpan extends ClickableSpan {

    private String imageUrl;

    private Context context;

    public ReadClickableSpan(Context context, String url) {
        imageUrl = url;
        this.context = context;
    }

    @Override
    public void onClick(@NonNull View widget) {
        Log.d("ReadClickableSpan", imageUrl);
        // 打开大图查看器
    }
}
